package com.example.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.example.entity.dto.ScraporderSelectDto;
import com.example.entity.hz.Scraporder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.mysql.Resource;
import com.example.entity.vo.ScraporderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Lan
 * @since 2025-01-08
 */
public interface ScraporderMapper extends BaseMapper<Scraporder> {

    @DS("mes")
    Resource getResourceUse(String deviceId);

    String oNum(String time);

    List<ScraporderVo> allList(@Param("dto") ScraporderSelectDto dto);
}
